<!--@reference Laptop Shop Tutorial   (Whitney Clare x11106131)-->
<!--created admin column in user table-->

<h1>Create User</h1>

	<% if @user.errors.any? %>
	<div id="errorExplanation">
<h2><%= pluralize(@user.errors.count, "error") %> 
	prohibited this user from being saved:</h2>
<ul> 
<% @user.errors.full_messages.each do |msg| %>
<li><%= msg %></li> 
<% end %> 
</ul>
</div> 
<% end %><%= form_for(@user) do |f| %>


<div class="field"> 
<%= f.label :email %><br /> 
<%= f.text_field :email %>
</div>
 <div class="field">
<%= f.label :password %><br />
<%= f.password_field :password %> 
</div>
<div>
<%= f.label :admin %><br/>
    <%= f.check_box :admin %>
</div>
<div class="actions"> 
<%= f.submit "Create User"%>
</div> 
<% end %>

<%= link_to 'Back', products_path %>
